export function useUpdateScale() {
	const scale = ref(1);
	function updateScale() {
		const width = window.innerWidth;
		scale.value = width > 375 ? 1 : width / 375;
		document.body.style.transform = `scale(${scale.value})`;
		document.body.style.transformOrigin = "top left";
	}

	onMounted(() => {
		updateScale();
		window.addEventListener("resize", debounce(updateScale, 10));
	});

	onUnmounted(() => {
		window.removeEventListener("resize", debounce(updateScale, 10));
	});
}
